package com.ewanghuiju.app.base.contract.my;

import com.ewanghuiju.app.base.BasePresenter;
import com.ewanghuiju.app.base.BaseView;
import com.ewanghuiju.app.model.bean.response.LbImgBean;
import com.ewanghuiju.app.model.bean.response.OrderStatusResponBean;
import com.ewanghuiju.app.model.bean.response.UserInfoResponBean;
import com.ewanghuiju.app.model.bean.response.VersionResponBean;
import com.ewanghuiju.app.model.http.response.BaseResponse;

import java.util.List;

/**
 * @author sj  qq:751943509
 * @class describe
 * @time 2020/2/16
 */
public interface MyContract {

    interface View extends BaseView {

        void showContent(String list);

        void showUserInfo(UserInfoResponBean bean);    //用户信息

        void showUserInfoError();

        void settingAvaterSuccess();

        void bindWxSuccess(); //绑定成功

        void unBindWxSuccess();//解绑成功

        void showOsstoken(BaseResponse baseResponse);//显示ossToken

        void showLbImg(int type, List<LbImgBean> list);//显示广告

        void showUpgradeInfo(VersionResponBean versionResponBean);//更新信息

        void showPtiorderStatus(OrderStatusResponBean orderStatusResponBean);
    }

    interface Presenter extends BasePresenter<View> {

        void getUserInfo();

        void getData();

        void clearUserInfo();

        void getOsstoken(String sessionname);//获取去oss token

        void settingAvater(String avater);//设置头像

        void bindWx(String unionid, String headimgurl, String nickname);//绑定微信

        void unBindWx(String wx);//解绑微信

        void taokeGetlbimg(int type);//获取我的广告

        void getUpgradeInfo(String version, String type);//获取更新提醒

        void getPtiorderStatus(); //获取不同状态数量
    }
}
